import service from './request'

// 2、定义登录函数接口
export const treeList = () => {
    return service({
        url: '/platform/ItemCat/getTreeList',
        method: 'post',
    })
};
export const insertApi = (data) => {
    return service({
        url: '/platform/ItemCat/insertData',
        method: 'post',
        data
    })
};
export const deleteApi = (id) => {
    return service({
        url: '/platform/ItemCat/delTree?id='+id,
        method: 'post',
    })
};
export const updateApi = (data) => {
    return service({
        url: '/platform/ItemCat/updateItemCat',
        method: 'post',
        data
    })
};